package cn.gok.mybatisplus.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName IndexController
 * @Description TODO
 * @Author HP
 * @Date 8:49 2022/7/22
 * @Version 1.0
 **/
@Controller
public class IndexController {
    @RequestMapping("sub")
    public String test(HttpServletRequest httpServletRequest) {
        String select = httpServletRequest.getParameter("sel");
        if ("clazz".equals(select)) {
            return "redirect:/clazz/selectAll";
        } else {
            return "redirect:/student/selectAll";
        }
    }
}
